package threadtest;

public class TestFinallize {
	public static void main(String[] args) throws InterruptedException {
		while (true) {
			new MyObj().start();
		}
	}
	
	
	static class MyObj extends Thread {
		@Override
		protected void finalize() throws Throwable {
			System.out.println("Over");
		}
		@Override
		public void run() {
			System.out.println("RUN");
		}
	}
}
